var status = -1;
var selectionLog = [];

function action(d, c, b) {
    if (status == 0 && d == 0) {
        cm.dispose();
        return
    }
    status++;
    selectionLog[status] = b;
    var a = -1;
    if (status <= a++) {
        cm.dispose()
    } else {
        if (status === a++) {
            cm.addPopupSay(0, 2500, "#face0#切！怎么有这么多碍事的东西？", "", 0);
            cm.addPopupSay(0, 2500, "#face0#看来是没办法轻易过去了！", "", 0);
            cm.addPopupSay(0, 2500, "#face0#必须弄清楚那扇门到底是什么门！", "", 0);
            cm.dispose()
        }
    }
}

function start() {
    status = -1;
    action(1, 0, 0)
};